package com.lzp.resource;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * 文件上传Resource类
 *
 * @author dtyy
 * @date 2020/10/15
 */
@Component // 组件注册到容器
@ConfigurationProperties(prefix = "file") // 扫描前缀
@PropertySource("classpath:file-upload-${spring.profiles.active}.properties") // 自动切换环境
public class FileUpload {

    /**
     * web服务器图片位置
     */
    private String imageUserFaceLocation;

    /**
     * 图像web映射地址
     */
    private String imageServerUrl;

    public String getImageServerUrl() {
        return imageServerUrl;
    }

    public void setImageServerUrl(String imageServerUrl) {
        this.imageServerUrl = imageServerUrl;
    }

    public String getImageUserFaceLocation() {
        return imageUserFaceLocation;
    }

    public void setImageUserFaceLocation(String imageUserFaceLocation) {
        this.imageUserFaceLocation = imageUserFaceLocation;
    }

}
